$timeout( function(){

    var a=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};
    var guid = a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a();

    var url = "http://bshare.optimix.asia/barCode?site=weixin&url=" + location.href;

    var html = '<div style="width: 100%;text-align: center;font-size: 12px;padding: 15px 0;margin-top: 20px;background: #fff;color: #666;"><i id="rwm-' + guid + '">关注公众号</i>&nbsp;&nbsp;<i id="rwm-1-' + guid + '">本页二维码</i></div>';
    var tip  = '<div id="tip-' + guid + '" style="position:fixed;left:0;top:0;width:100%;height:100%;display:none;z-index:111;">' +
                    '<div class="filter" style="position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.8)"></div>' +
                    '<div style="position: absolute;width: 60%;max-width: 480px;top: 15%;left: 50%;-webkit-transform: translateX(-50%);transform: translateX(-50%);">'+
                        '<p style="text-align:center;margin-bottom:1.5rem;font-size:1.4rem;color:#fff;">长按识别二维码关注我们</p>'+
                        '<div style="background:#fff;margin:0 auto;width:80%"><img style="display:block;width:100%;" src="http://cdn.xsmore.com/Images/zmkm/zmkm-rwm.jpg"></div>'+
                    '</div>' + 
               '</div>'+
               '<div id="tip-1-' + guid + '" style="position:fixed;left:0;top:0;width:100%;height:100%;display:none;z-index:111;">' +
                    '<div class="filter" style="position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.8)"></div>' +
                    '<div style="position: absolute;width: 60%;max-width: 480px;padding: 10px;top: 15%;left: 50%;-webkit-transform: translateX(-50%);transform: translateX(-50%);">'+
                        '<p style="text-align:center;line-height: 1.8rem;margin-bottom:1.5rem;font-size:1.4rem;color:#fff;">通过微信【扫一扫】功能<br>扫描二维码访问页面</p>'+
                        '<div style="padding:10px;background:#fff;margin:0 auto;width:80%"><img style="display:block;width:100%;" src="'+url+'"></div>'+
                    '</div>' + 
               '</div>';

    $("body").append(html + tip);

    $("#rwm-" + guid).on("click", function(){
        $("#tip-" + guid).fadeIn();
    })

    $("#rwm-1-" + guid).on("click", function(){
        $("#tip-1-" + guid).fadeIn();
    })

    $("#tip-" + guid + " .filter").on("click", function(){
        $("#tip-" + guid).fadeOut();
    })

    $("#tip-1-" + guid + " .filter").on("click", function(){
        $("#tip-1-" + guid).fadeOut();
    })
 
},0,false
)